package 我的Java学习_算法基础.day_06;

public class _092_Nim游戏 {
    public static void main(String[] args) {
        int[] a ={5,10,15};
        boolean res =solve(a);
        System.out.println(res);
    }
    private static boolean solve(int[] a){
        int res = 0;
        for(int i =0;i<a.length;i++){
            res^=a[i];
        }
        return res!=0;
    }
}
